// const Layout = () => import("@/layout/index.vue");
import drugManageSvg from "@/assets/svg/drugManage.svg?component";
export default {
  path: "/supplyManager",
  // component: Layout,
  redirect: "/supply/index",
  meta: {
    title: "用药管理",
    icon: drugManageSvg,
    rank: 20
  },
  children: [
    {
      path: "/supply/index",
      name: "SupplyIndex",
      component: () => import("@/views/supply/index.vue"),
      meta: {
        title: "中心药房"
      }
    },
    //   children: [
    //     // {
    //     //   path: "/supply/index",
    //     //   name: "SupplyIndex",
    //     //   component: () => import("@/views/supply/index.vue"),
    //     //   meta: {
    //     //     title: "药房列表"
    //     //   }
    //     // },
    //   //   {
    //   //     path: "/supply/add",
    //   //     name: "SupplyAdd",
    //   //     component: () => import("@/views/supply/addSupply.vue"),
    //   //     meta: {
    //   //       title: "编辑信息",
    //   //       showLink: false
    //   //     }
    //   //   }
    //   // ]
    // },
    {
      path: "/supply/add",
      name: "SupplyAdd",
      component: () => import("@/views/supply/addSupply.vue"),
      meta: {
        title: "编辑信息",
        showLink: false
      }
    },
    {
      path: "/supply/catalogue",
      name: "SupplyCatalogue",
      component: () => import("@/views/supply/catalogue.vue"),
      meta: {
        title: "药品目录"
      }
    },
    {
      path: "/supply/analyse",
      name: "SupplyAnalyse",
      component: () => import("@/views/supply/analyse.vue"),
      meta: {
        title: "供应分析"
      }
    },

    {
      path: "/supply/order",
      name: "SupplyOrder",
      component: () => import("@/views/supply/order.vue"),
      meta: {
        title: "订单查询"
      }
    },
    {
      path: "/supply/orderDetail",
      name: "SupplyOrderDetail",
      component: () => import("@/views/supply/orderDetail.vue"),
      meta: {
        title: "订单详情",
        showLink: false
      }
    },
    {
      path: "/supply/selfPickupPoint",
      name: "SupplySelfPickupPoint",
      component: () => import("@/views/supply/selfPickupPoint.vue"),
      meta: {
        title: "自提地点",
        showLink: false
      }
    },
    {
      path: "/supply/addPickupPoint",
      name: "SupplyAddPickupPoint",
      component: () => import("@/views/supply/addPickupPoint.vue"),
      meta: {
        title: "编辑信息",
        showLink: false
      }
    }
  ]
} as RouteConfigsTable;
